<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="UTF-8"/>
  <title>
  榆林科技馆内容页
</title><link rel="stylesheet" type="text/css" href="css/reset.css" /><link rel="stylesheet" type="text/css" href="css/main.css" />
  <script src="js/vue2.min.js"></script>
  <script src="js/axios.min.js"></script>
  <script type="text/javascript" src="js/adddate.js"></script>
</head>
<body>
<form name="form1" method="post" action="../user?action=updateUser" id="form1">


  <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['form1'];
    if (!theForm) {
      theForm = document.form1;
    }
    function __doPostBack(eventTarget, eventArgument) {
      if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
      }
    }
    //]]>
  </script>


  <div>

    <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="6B0D22E4" />
    <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEdABHmQLLdB9eQIZdYHnkaBc4s8Ds3b6Y15Lq8RAGwZ2CUHUAB4aOpml0FhQEGvmNYWtgsKBl6FFSWw4rQ6dmj0iLUEVg+vAWWaU+KXrY24yLVwbgRYFAlHDpWF84hqfyffe0UqY+EdVbcAiSYpPtCLgnm198AXLacbDNAlVjYmNu4KLH9sG0OakpKoKqzQ4e1vUngBjk0MFM+ahxhxJKvZ66Oc6ejGUf4jmXWWWd+yElG8jLO3awqjhzobdBwfE26FxoQXty8MMWdrGY/1ugMCNCB6Ax7CDalcdd5J5hctA7gZxIMFluPmS1XnjVrmew7FdvN+DvxnwFeFeJ9MIBWR693MI14W7/wgUr52WRFnWK3l1s/npKCsoxHDGdZNpcjxmfhEx0+q3MUuIbpNibjUXXK" />
  </div>
  <!--条件检索-->
  <div id="div1" class="main_box">
    <div class="side_here">
      <p>
        <a href="#" title="首页"></a>当前位置 > <span>系统设置</span> > <span>
                    系统用户</span></p>
    </div>
    <div class="kong">
    </div>
    <!--公用位置导航结束-->
    <div class="cont_box">
      <p class="title_bt">
        系统用户修改</p>
      <div class="biaodan_list">
        <table class="table_biaodan" border="0" cellspacing="0" cellpadding="0">
          <tbody>
          <tr>
            <td class="biaodan_name">
              <i>*</i>序号：
            </td>
            <td class="biaodan_enter">
              <input name="txtA_id" v-model="user.usID" readonly type="text" id="txtA_id" class="input" />
            </td>
          </tr>
          <tr>
            <td class="biaodan_name">
              <i>*</i>用户名：
            </td>
            <td class="biaodan_enter">
              <input name="txtA_user" v-model="user.userName" type="text" id="txtA_user" class="input" />
            </td>
          </tr>

          <tr>
            <td class="biaodan_name">
              姓名：
            </td>
            <td class="biaodan_enter">
              <input name="txtA_name" v-model="user.realName" type="text"  id="txtA_name" class="input" onbeforepaste="clipboardData.setData(&#39;text&#39;,clipboardData.getData(&#39;text&#39;).replace(/[\d]/g,&#39;&#39;))" />
            </td>
          </tr>
          <tr id="Hidd" style="display:block;">
            <td class="biaodan_name">
              所属角色：
            </td>
            <td class="biaodan_enter">
              <select   name="ddlA_post" id="ddlA_post" >
<!--                <option value="0" selected>&#45;&#45;请选择&#45;&#45;</option>-->
                <option v-for="r in roles"  :value="r.roleID">{{r.roleName}}</option>

                <!--		<option value="2">电影管理员</option>-->

              </select>
            </td>
          </tr>
          <tr>
            <td class="biaodan_name">
              创建时间：
            </td>
            <td class="biaodan_enter">
              <input name="txtA_Time" v-model="user.createTime" type="text"  id="txtA_Time" class="input" onbeforepaste="clipboardData.setData(&#39;text&#39;,clipboardData.getData(&#39;text&#39;).replace(/[\d]/g,&#39;&#39;))" />
            </td>
          </tr>

          <tr align="center">
            <td class="anniu1" style="width: 200px; height: 50px; display: block; margin-left: 350px;">
              <input type="button"  name="add" value="修改" id="add" class="btn btn-secondary radius" />
            </td>
          </tr>
          </tbody>
        </table>
      </div>
      <!--            表单提交结束-->

    </div>
  </div>
</form>
<script >
  var b=new Vue({
    el:'#div1',
    data:{
      user:[],
      roles:[]
    },

    methods:{


    }
  });
  window.onload=goUp;
  function goUp(){
    // alert(window.location.search)
    var url="../user"+window.location.search+"&action=findUserById";
    // alert(url);
    axios.get(url)
            .then(res=>{
                      b.user=res.data;
                    }
            );
      var url1 = "/user?action=findRoles"
      axios.get(url1).then(res=>{
      b.roles=res.data;
    });
  }
</script>
</body>
</html>
